package com.suncreate.zhtz.iot.mapper;

import com.suncreate.zhtz.iot.model.ScWarningStrategy;

import java.util.List;

/**
 * 预警策略配置列Mapper接口
 *
 * @author ruoyi
 * @date 2021-08-30
 */
public interface ScWarningStrategyMapper
{
    /**
     * 查询预警策略配置列
     *
     * @param straId 预警策略配置列ID
     * @return 预警策略配置列
     */
    public ScWarningStrategy selectScWarningStrategyById(Long straId);

    /**
     * 查询预警策略配置列列表
     *
     * @param scWarningStrategy 预警策略配置列
     * @return 预警策略配置列集合
     */
    public List<ScWarningStrategy> selectScWarningStrategyList(ScWarningStrategy scWarningStrategy);

    /**
     * 新增预警策略配置列
     *
     * @param scWarningStrategy 预警策略配置列
     * @return 结果
     */
    public int insertScWarningStrategy(ScWarningStrategy scWarningStrategy);

    /**
     * 修改预警策略配置列
     *
     * @param scWarningStrategy 预警策略配置列
     * @return 结果
     */
    public int updateScWarningStrategy(ScWarningStrategy scWarningStrategy);

    /**
     * 删除预警策略配置列
     *
     * @param straId 预警策略配置列ID
     * @return 结果
     */
    public int deleteScWarningStrategyById(Long straId);

    /**
     * 批量删除预警策略配置列
     *
     * @param straIds 需要删除的数据ID
     * @return 结果
     */
    public int deleteScWarningStrategyByIds(String[] straIds);
}
